package edu.scau.cxq.gp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 存储出库信息
 * </p>
 *
 * @author CXQ
 * @since 2022-01-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_record_out")
public class RecordOut implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 出库编号
     */
    @TableId(value = "out_id", type = IdType.AUTO)
    private Long outId;

    /**
     * 货物编号
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 客户编号
     */
    @TableField("cus_id")
    private Long cusId;

    /**
     * 仓库编号
     */
    @TableField("ware_id")
    private Long wareId;

    /**
     * 出库时间
     */
    @TableField("out_time")
    private LocalDateTime outTime;

    /**
     * 出库单个售价
     */
    @TableField("out_price")
    private Double outPrice;

    /**
     * 进价
     */
    @TableField("in_price")
    private Double inPrice;

    /**
     * 出库数量
     */
    @TableField("out_count")
    private Integer outCount;
}
